<template>
  <transition name="show">
    <div class="popup-box" v-if="isShowpop">
        加入购物车成功
    </div>
  </transition>
</template>

<script>
export default {
  props: {
    isShowpop: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {};
  }
};
</script>

<style lang="scss">
.popup-box {
  position: fixed;
  width: 460px;
  line-height: 160px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  text-align: center;
  color: #fff;
  font-size: 36px;
  top: 50%;
  left: 50%;
  margin-left: -230px;
  margin-top: -80px;
  z-index: 1111;
}
.show-enter-active,
.show-leave-active {
  transition: all 1.2s;
}

.show-enter,
.show-leave-to {
  opacity: 0;
}
</style>
